Gets or sets the element with the specified key.
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Default Property Item( _
   ByVal key As TKey _
) As TValue  | 
 
            Parameters
- key
 
- The key of the element to get or set.
 
            
            Property Value
The element with the specified key.
 
            
Exceptions
			
			
            
            
            
Example
Library/Library.Test/TestBTreeDictionary.cs
             | C# |  Copy Code | 
|---|
BTreeDictionary<int, string> data = new BTreeDictionary<int, string>(Comparer, GetSample());
BTreeDictionary<int, string> copy = new BTreeDictionary<int, string>();
copy.AddRange(data);
Assert.AreEqual(copy.Count, data.Count);
foreach (int key in data.Keys)
    Assert.AreEqual(data[key], copy[key]); | 
 
| VB.NET |  Copy Code | 
|---|
Dim data As New BTreeDictionary(Of Integer, String)(Comparer, GetSample())
Dim copy As New BTreeDictionary(Of Integer, String)()
copy.AddRange(data)
Assert.AreEqual(copy.Count, data.Count)
For Each key As Integer In data.Keys
    Assert.AreEqual(data(key), copy(key))
Next | 
 
 
            
            
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
 
            
            
See Also